// https://nuxt.com/docs/api/configuration/nuxt-config
import tailwindcss from "@tailwindcss/vite";

export default defineNuxtConfig({
  compatibilityDate: "2025-07-15",
  devtools: { enabled: true },
  components: {
    dirs: [
      "~/components",
      "~/components/ui", // 添加这一行以包含shadcn/ui组件
    ],
  },

  css: [
    "~/assets/css/tailwind.css",
    "~/assets/css/main.css",
    "~/assets/css/globals.css",
  ],

  vite: {
    plugins: [tailwindcss()],
  },

  modules: ["shadcn-nuxt", "shadcn-nuxt"],

  shadcn: {
    /**
     * Prefix for all the imported component
     */
    prefix: "",
    /**
     * Directory that the component lives in.
     * @default "./components/ui"
     */
    componentDir: "./components/ui",
  },
});
